import os
from django.db import models

# Create your models here.
# class VIP(models.Model):
#     SEX_CHOICE = (
#         ('male','男'),
#         ('female','女'),
#     )
#     id = models.AutoField(primary_key=True)
#     name = models.CharField(max_length=128)
#     password = models.CharField(max_length=256)
#     sex = models.CharField(max_length=4,choices=SEX_CHOICE,default='')
#     c_time = models.DateTimeField(auto_now_add=True)
from web.settings import BASE_DIR


class KeyWords(models.Model):

    # keywords title content author source c_time
    keywords = models.CharField(max_length=128)
    pinyin = models.CharField(max_length=128)
    title = models.CharField(max_length=128, default="初始化标题")
    content = models.CharField(max_length=128, default="此处填写内容")
    author = models.CharField(max_length=128, default="网络")
    source = models.CharField(max_length=128, default="来自网络")
    kewordsfix1 = models.CharField(max_length=128, default='0')
    kewordsfix2 = models.CharField(max_length=128, default='0')
    kewordsfix3 = models.CharField(max_length=128, default='0')
    kewordsfix4 = models.CharField(max_length=128, default='0')
    hidecontent = models.CharField(max_length=600, default='0')
    c_time = models.DateTimeField(auto_now_add=True)
    def __str__(self):
        return self.keywords

class Imgfiles(models.Model):
    img =models.CharField(max_length=128)
    def __str__(self):
        return self.img
class Xiaoshuo(models.Model):
    content = models.CharField(max_length=600)
    usestate= models.IntegerField(default=0)
    def __str__(self):
        return self.content